package cn.ubest.mvvmcore.bean

/**
 * Created by maoqi on 2021/1/15.
 */
sealed class ResultState<T> {
    class Start<T>(val isInit: Boolean) : ResultState<T>()
    class Finally<T>(val isInit: Boolean) : ResultState<T>()
    data class Response<T>(val response: T) : ResultState<T>()
    data class Error<T>(val code:Int, val message:String?) : ResultState<T>()
}
